@extends("layouts.backend.webadmin")
@section('page-header')
    <h1>
        <small>falw\menu</small>
    </h1>
@endsection

@section('content')
            <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-body">
                        @if($errors->any())
                            <ul class="alert alert-danger">
                                @foreach($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        @endif
                        <form action="{{ URL::route('admin.flaw.vulsaudit') }}" method="POST">
                            <input type="hidden" name="vuls_id" value="{{$item->id}}">
                            <input type="hidden" name="app_id" value="{{$item->app_id}}">
                            <input type="hidden" name="vuls_status" value="2">
                            @needsroles([2,3])
                            <div class="form-group">
                                <label for="vulstitle">标题</label>
                                <input type="text" class="form-control" id="vulstitle" placeholder="漏洞标题" disabled name="title"  value="{{$item->title}}">
                            </div>
                            @endauth
                            <div class="form-group">
                                <label>描述</label>
                                <textarea class="form-control" rows="3" placeholder="相关描述..." name="content"> {{ old('content','相关描述...')}}  </textarea>
                            </div>
                            {!! csrf_field() !!}
                            <button type="submit" class="btn btn-default">审核</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
@stop